import React from "react";
import {Button, Center} from "native-base";
import {StyleSheet} from 'react-native';

export const SearchRadicals = ({setShow}) => {
    return (
        // 偏旁部首快速选择器
        <Button
            onPress={() => {
                setShow(true);
            }}
            style={styles.otherSearch}
            shadow={2}>
            <Center
                _text={{fontWeight: 'bold', color: '#1eb566', fontsize: 20}}
                style={styles.search}>
                偏旁部首快速选择器
            </Center>
        </Button>
    )
}

const styles = StyleSheet.create({
    otherSearch: {
        width: '100%',
        height: 50,
        backgroundColor: '#f2f2f2',
        marginBottom: 10,
        borderRadius: 5
    },
    search: {
        width: '100%',
        height: '100%',
        fontWeight: 'bold',
        fontsize: 30,
    },
})